#include"SList.h"

Test1()
{
	SLTNode* plist = NULL;
	SListpushFront(&plist, 4);
	SListpushFront(&plist, 3);
	SListpushFront(&plist, 2);
	SListpushFront(&plist, 1);
	SListPrint(plist);

	SListpushBack(&plist, 5);
	//SListPrint(plist);
	SListpushBack(&plist, 6);
	SListpushBack(&plist, 7);
	//SListPrint(plist);
	SListPopFront(&plist);
	SListPopFront(&plist);
	SListPrint(plist);
	SListPopBack(&plist);
	SListPrint(plist);
	SListInsert(&plist, 8, 2);
	SListInsert(&plist, 9, 3);
	SListInsert(&plist, 10, 4);
	SListInsert(&plist, 1, 1);
	SListInsert(&plist, 2, 1);
	SListPrint(plist);
	SListErase(&plist, 3);
	SListErase(&plist, 3);
	SListPrint(plist);
	SListErase(&plist, 1);
	SListErase(&plist, 2);
	SListPrint(plist);
}

int main()
{

	Test1();
	return 0;
}